/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VenRegClientOnline.java
 *
 * Created on May 17, 2010, 11:32:46 AM
 */

package View;

import java.awt.Image;
import java.awt.Toolkit;

/**
 *
 * @author daniel
 */
public class VenRegClientOnline extends javax.swing.JFrame {

    /** Creates new form VenRegClientOnline */
    public VenRegClientOnline() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new View.panelDefondo("fondo.jpg");
        jButton_OrdeServTaxiClient = new javax.swing.JButton();
        jP_Superior1 = new View.panelDefondo("fondo3.png");
        jButton_CambClavClient = new javax.swing.JButton();
        jLCerrarSesion = new javax.swing.JLabel();

        setTitle("Cliente S.A.T");
        setIconImage(getIconImage());
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jButton_OrdeServTaxiClient.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_OrdeServTaxiClient.setText("Ordenar Servicio Taxi");
        jButton_OrdeServTaxiClient.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_OrdeServTaxiClientActionPerformed(evt);
            }
        });
        jPanel1.add(jButton_OrdeServTaxiClient, new org.netbeans.lib.awtextra.AbsoluteConstraints(61, 143, 174, 38));

        jP_Superior1.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_Superior1Layout = new javax.swing.GroupLayout(jP_Superior1);
        jP_Superior1.setLayout(jP_Superior1Layout);
        jP_Superior1Layout.setHorizontalGroup(
            jP_Superior1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 340, Short.MAX_VALUE)
        );
        jP_Superior1Layout.setVerticalGroup(
            jP_Superior1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 104, Short.MAX_VALUE)
        );

        jPanel1.add(jP_Superior1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 340, -1));

        jButton_CambClavClient.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_CambClavClient.setText("Cambiar Clave");
        jButton_CambClavClient.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_CambClavClientActionPerformed(evt);
            }
        });
        jPanel1.add(jButton_CambClavClient, new org.netbeans.lib.awtextra.AbsoluteConstraints(59, 199, 176, 39));

        jLCerrarSesion.setForeground(new java.awt.Color(255, 0, 0));
        jLCerrarSesion.setText("Cerrar Sesion");
        jLCerrarSesion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLCerrarSesionMouseClicked(evt);
            }
        });
        jPanel1.add(jLCerrarSesion, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 250, 90, 20));

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 340, 290));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-356)/2, (screenSize.height-328)/2, 356, 328);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton_OrdeServTaxiClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_OrdeServTaxiClientActionPerformed
        VenOrdeTAxi ventanaordentaxi = new VenOrdeTAxi();
        ventanaordentaxi.setVisible(true);
}//GEN-LAST:event_jButton_OrdeServTaxiClientActionPerformed

    private void jButton_CambClavClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_CambClavClientActionPerformed
        VenCambiarClave ventanaregistrocliente = new VenCambiarClave();
        ventanaregistrocliente.setVisible(true);
}//GEN-LAST:event_jButton_CambClavClientActionPerformed

    private void jLCerrarSesionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLCerrarSesionMouseClicked

        VentanaDeIncioDeSecion veniniciodesesin = new VentanaDeIncioDeSecion();
        veniniciodesesin.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_jLCerrarSesionMouseClicked

    /**
    * @param args the command line arguments
    */
     @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("View/taxis [1600x1200].png"));


        return retValue;
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_CambClavClient;
    private javax.swing.JButton jButton_OrdeServTaxiClient;
    private javax.swing.JLabel jLCerrarSesion;
    private javax.swing.JPanel jP_Superior1;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables

}
